import request from '@/utils/request'

//获取网站基本信息列表
export function getSiteInfoList(data) {
	return request({
		method: 'get',
		url: 'tbSysSite/queryList',
		headers: {
			userButton: '62883407c41b4762a45e8b641a440a82'
		},
		params: data
	})
}

//添加网站基本信息
export function addedSiteInfo(data) {
	return request({
		method: 'post',
		url: 'tbSysSite/add',
		headers: {
			userButton: '02a3fbfbaafe46dd9701b552c092b8fd'
		},
		data
	})
}

//修改网站基本信息
export function updateSiteInfo(data) {
	return request({
		method: 'post',
		url: 'tbSysSite/update',
		headers: {
			userButton: '8f61bb85056148518cae6b515f0b4823'
		},
		data
	})
}

//删除网站基本信息
export function deleteSiteInfo(id) {
	return request({
		method: 'post',
		url: 'tbSysSite/delete/' + id,
		headers: {
			userButton: '1fc9c5f21394443998fd5aa71a6ad34b'
		}
	})
}

//获取网站基本信息详情
export function querySiteInfo(id) {
	return request({
		method: 'get',
		url: 'tbSysSite/query/' + id,
		headers: {
			userButton: '347f05dc40ca48029839b71f5a358d4a'
		}
	})
}

//账号冻结设置/出现验证码设置
export function updateFrozenSetting(data) {
	return request({
		method: 'post',
		url: 'tbSysSite/updateFrozen',
		headers: {
			userButton: 'c8e67c977aa8471293564d0e781b5bba'
		},
		data
	})
}

//定时强制修改密码设置
export function updateTimingSetting(data) {
	return request({
		method: 'post',
		url: 'tbSysSite/updateiming',
		headers: {
			userButton: 'aa815659518c452d925a1b4272f26ef9'
		},
		data
	})
}

//超期禁用设置
export function updateOverdueSetting(data) {
	return request({
		method: 'post',
		url: 'tbSysSite/updateOverdue',
		headers: {
			userButton: '48fe287315b74a4ca4bede75293e2987'
		},
		data
	})
}

//修改密码规则设置
export function updatePasswordRuleSeeting(data) {
	return request({
		method: 'post',
		url: 'tbSysSite/updatePasswordRule',
		headers: {
			userButton: '6bd0533935744eb8a026ecd10785fbda'
		},
		data
	})
}